import { defineStore } from "pinia";

interface IState {
    popEmoji: boolean;
    x: number;
    y: number;
}

export const useEmoji = defineStore("emoji", {
    state: (): IState => ({
        popEmoji: false,
        x: 0,
        y: 0
    }),

    getters: {},
    actions: {
        changePopEmoji(val: any) {
            this.popEmoji = val;
        },
        setPosition(x: number, y: number) {
            this.x = x;
            this.y = y;
        }
    }
});
